package com.ruoyi.costumeShop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.costumeShop.mapper.CostumeSaleOrderDetailMapper;
import com.ruoyi.costumeShop.domain.CostumeSaleOrderDetail;
import com.ruoyi.costumeShop.service.ICostumeSaleOrderDetailService;

/**
 * saleOrderDetailService业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-05
 */
@Service
public class CostumeSaleOrderDetailServiceImpl implements ICostumeSaleOrderDetailService 
{
    @Autowired
    private CostumeSaleOrderDetailMapper costumeSaleOrderDetailMapper;

    /**
     * 查询saleOrderDetail
     * 
     * @param saleOrderDetailId saleOrderDetail主键
     * @return saleOrderDetail
     */
    @Override
    public CostumeSaleOrderDetail selectCostumeSaleOrderDetailBySaleOrderDetailId(Long saleOrderDetailId)
    {
        return costumeSaleOrderDetailMapper.selectCostumeSaleOrderDetailBySaleOrderDetailId(saleOrderDetailId);
    }

    /**
     * 查询saleOrderDetail列表
     * 
     * @param costumeSaleOrderDetail saleOrderDetail
     * @return saleOrderDetail
     */
    @Override
    public List<CostumeSaleOrderDetail> selectCostumeSaleOrderDetailList(CostumeSaleOrderDetail costumeSaleOrderDetail)
    {
        return costumeSaleOrderDetailMapper.selectCostumeSaleOrderDetailList(costumeSaleOrderDetail);
    }

    /**
     * 新增saleOrderDetail
     * 
     * @param costumeSaleOrderDetail saleOrderDetail
     * @return 结果
     */
    @Override
    public int insertCostumeSaleOrderDetail(CostumeSaleOrderDetail costumeSaleOrderDetail)
    {
        return costumeSaleOrderDetailMapper.insertCostumeSaleOrderDetail(costumeSaleOrderDetail);
    }

    /**
     * 修改saleOrderDetail
     * 
     * @param costumeSaleOrderDetail saleOrderDetail
     * @return 结果
     */
    @Override
    public int updateCostumeSaleOrderDetail(CostumeSaleOrderDetail costumeSaleOrderDetail)
    {
        return costumeSaleOrderDetailMapper.updateCostumeSaleOrderDetail(costumeSaleOrderDetail);
    }

    /**
     * 批量删除saleOrderDetail
     * 
     * @param saleOrderDetailIds 需要删除的saleOrderDetail主键
     * @return 结果
     */
    @Override
    public int deleteCostumeSaleOrderDetailBySaleOrderDetailIds(Long[] saleOrderDetailIds)
    {
        return costumeSaleOrderDetailMapper.deleteCostumeSaleOrderDetailBySaleOrderDetailIds(saleOrderDetailIds);
    }

    /**
     * 删除saleOrderDetail信息
     * 
     * @param saleOrderDetailId saleOrderDetail主键
     * @return 结果
     */
    @Override
    public int deleteCostumeSaleOrderDetailBySaleOrderDetailId(Long saleOrderDetailId)
    {
        return costumeSaleOrderDetailMapper.deleteCostumeSaleOrderDetailBySaleOrderDetailId(saleOrderDetailId);
    }
}
